﻿namespace IOA.MES.DataAccess.VModel
{
    /// <summary>
    /// 角色表
    /// </summary>
    public class VRole : BaseVModel
    {
        private string _roleName = string.Empty;
        private string _departmentName = string.Empty;

        #region Public Property

        ///<Summary>
        /// 部门ID
        ///</Summary>
        public int DepartmentId { get; set; }

        ///<Summary>
        /// 是否管理员
        ///</Summary>
        public bool IsManager { get; set; }

        ///<Summary>
        /// 角色名称
        ///</Summary>
        public string RoleName
        {
            get { return string.IsNullOrWhiteSpace(_roleName) ? string.Empty : _roleName; }
            set { _roleName = value; }
        }

        /// <summary>
        /// 所在部门名称
        /// </summary>
        public string DepartmentName
        {
            get { return string.IsNullOrWhiteSpace(_departmentName) ? string.Empty : _departmentName; }
            set { _departmentName = value; }
        }
        #endregion
    }
}
